package com.bookcode.service;

import com.bookcode.dao.TeacherCourseRepository;
import com.bookcode.entity.CourseStudent;
import com.bookcode.entity.TeacherCourse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 刘浩然
 * @Date: 2020/10/22 19:09
 * 老师添加课程表中间表
 */
@Service
public class TeacherCourseService {
    @Autowired
    TeacherCourseRepository teacherCourseRepository;
    //添加课程
    public void save(TeacherCourse teacherCourse) {
        teacherCourseRepository.save(teacherCourse);
    }

}
